package com.xy.controller;

import com.xy.annotation.WebLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class HelloController {

    @GetMapping("/hello")
    @WebLog(description = "请求了用户登录接口")
    public String hello() {
        log.info("hello");
        return "hello";
    }
}
